/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plagiadetector.datatype;

/**
 * Class that used to contain a text and its start position in the larger text.
 * Mainly used to note a plagiarism case in a text, but can be used for another purposes, including text segments.
 * @author Dell
 */
public class TextSegment {
    public String segmentText; //text of this case
    public int offset; //starting position of this case in the main text.
    
    public TextSegment(String s, int x){
        segmentText = s;
        offset = x;
    }
    
    public TextSegment(){
        segmentText = "";
        offset = 0;
    }
}
